/**
 * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package de.hsmannheim.pepa.patientenportal.apanwep.model;

import com.liferay.portal.kernel.util.Validator;
import com.liferay.portal.model.ModelWrapper;

import java.util.HashMap;
import java.util.Map;

/**
 * <p>
 * This class is a wrapper for {@link messages_mobjects}.
 * </p>
 *
 * @author Cedric Nana
 * @see messages_mobjects
 * @generated
 */
public class messages_mobjectsWrapper implements messages_mobjects,
	ModelWrapper<messages_mobjects> {
	public messages_mobjectsWrapper(messages_mobjects messages_mobjects) {
		_messages_mobjects = messages_mobjects;
	}

	@Override
	public Class<?> getModelClass() {
		return messages_mobjects.class;
	}

	@Override
	public String getModelClassName() {
		return messages_mobjects.class.getName();
	}

	@Override
	public Map<String, Object> getModelAttributes() {
		Map<String, Object> attributes = new HashMap<String, Object>();

		attributes.put("messages_ID", getMessages_ID());
		attributes.put("messageobjects_id", getMessageobjects_id());

		return attributes;
	}

	@Override
	public void setModelAttributes(Map<String, Object> attributes) {
		Long messages_ID = (Long)attributes.get("messages_ID");

		if (messages_ID != null) {
			setMessages_ID(messages_ID);
		}

		Long messageobjects_id = (Long)attributes.get("messageobjects_id");

		if (messageobjects_id != null) {
			setMessageobjects_id(messageobjects_id);
		}
	}

	/**
	* Returns the primary key of this messages_mobjects.
	*
	* @return the primary key of this messages_mobjects
	*/
	@Override
	public de.hsmannheim.pepa.patientenportal.apanwep.service.persistence.messages_mobjectsPK getPrimaryKey() {
		return _messages_mobjects.getPrimaryKey();
	}

	/**
	* Sets the primary key of this messages_mobjects.
	*
	* @param primaryKey the primary key of this messages_mobjects
	*/
	@Override
	public void setPrimaryKey(
		de.hsmannheim.pepa.patientenportal.apanwep.service.persistence.messages_mobjectsPK primaryKey) {
		_messages_mobjects.setPrimaryKey(primaryKey);
	}

	/**
	* Returns the messages_ i d of this messages_mobjects.
	*
	* @return the messages_ i d of this messages_mobjects
	*/
	@Override
	public long getMessages_ID() {
		return _messages_mobjects.getMessages_ID();
	}

	/**
	* Sets the messages_ i d of this messages_mobjects.
	*
	* @param messages_ID the messages_ i d of this messages_mobjects
	*/
	@Override
	public void setMessages_ID(long messages_ID) {
		_messages_mobjects.setMessages_ID(messages_ID);
	}

	/**
	* Returns the messageobjects_id of this messages_mobjects.
	*
	* @return the messageobjects_id of this messages_mobjects
	*/
	@Override
	public long getMessageobjects_id() {
		return _messages_mobjects.getMessageobjects_id();
	}

	/**
	* Sets the messageobjects_id of this messages_mobjects.
	*
	* @param messageobjects_id the messageobjects_id of this messages_mobjects
	*/
	@Override
	public void setMessageobjects_id(long messageobjects_id) {
		_messages_mobjects.setMessageobjects_id(messageobjects_id);
	}

	@Override
	public boolean isNew() {
		return _messages_mobjects.isNew();
	}

	@Override
	public void setNew(boolean n) {
		_messages_mobjects.setNew(n);
	}

	@Override
	public boolean isCachedModel() {
		return _messages_mobjects.isCachedModel();
	}

	@Override
	public void setCachedModel(boolean cachedModel) {
		_messages_mobjects.setCachedModel(cachedModel);
	}

	@Override
	public boolean isEscapedModel() {
		return _messages_mobjects.isEscapedModel();
	}

	@Override
	public java.io.Serializable getPrimaryKeyObj() {
		return _messages_mobjects.getPrimaryKeyObj();
	}

	@Override
	public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
		_messages_mobjects.setPrimaryKeyObj(primaryKeyObj);
	}

	@Override
	public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
		return _messages_mobjects.getExpandoBridge();
	}

	@Override
	public void setExpandoBridgeAttributes(
		com.liferay.portal.model.BaseModel<?> baseModel) {
		_messages_mobjects.setExpandoBridgeAttributes(baseModel);
	}

	@Override
	public void setExpandoBridgeAttributes(
		com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
		_messages_mobjects.setExpandoBridgeAttributes(expandoBridge);
	}

	@Override
	public void setExpandoBridgeAttributes(
		com.liferay.portal.service.ServiceContext serviceContext) {
		_messages_mobjects.setExpandoBridgeAttributes(serviceContext);
	}

	@Override
	public java.lang.Object clone() {
		return new messages_mobjectsWrapper((messages_mobjects)_messages_mobjects.clone());
	}

	@Override
	public int compareTo(
		de.hsmannheim.pepa.patientenportal.apanwep.model.messages_mobjects messages_mobjects) {
		return _messages_mobjects.compareTo(messages_mobjects);
	}

	@Override
	public int hashCode() {
		return _messages_mobjects.hashCode();
	}

	@Override
	public com.liferay.portal.model.CacheModel<de.hsmannheim.pepa.patientenportal.apanwep.model.messages_mobjects> toCacheModel() {
		return _messages_mobjects.toCacheModel();
	}

	@Override
	public de.hsmannheim.pepa.patientenportal.apanwep.model.messages_mobjects toEscapedModel() {
		return new messages_mobjectsWrapper(_messages_mobjects.toEscapedModel());
	}

	@Override
	public de.hsmannheim.pepa.patientenportal.apanwep.model.messages_mobjects toUnescapedModel() {
		return new messages_mobjectsWrapper(_messages_mobjects.toUnescapedModel());
	}

	@Override
	public java.lang.String toString() {
		return _messages_mobjects.toString();
	}

	@Override
	public java.lang.String toXmlString() {
		return _messages_mobjects.toXmlString();
	}

	@Override
	public void persist()
		throws com.liferay.portal.kernel.exception.SystemException {
		_messages_mobjects.persist();
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj) {
			return true;
		}

		if (!(obj instanceof messages_mobjectsWrapper)) {
			return false;
		}

		messages_mobjectsWrapper messages_mobjectsWrapper = (messages_mobjectsWrapper)obj;

		if (Validator.equals(_messages_mobjects,
					messages_mobjectsWrapper._messages_mobjects)) {
			return true;
		}

		return false;
	}

	/**
	 * @deprecated As of 6.1.0, replaced by {@link #getWrappedModel}
	 */
	public messages_mobjects getWrappedmessages_mobjects() {
		return _messages_mobjects;
	}

	@Override
	public messages_mobjects getWrappedModel() {
		return _messages_mobjects;
	}

	@Override
	public void resetOriginalValues() {
		_messages_mobjects.resetOriginalValues();
	}

	private messages_mobjects _messages_mobjects;
}